<include file="Public/head" />
<include file="Public/menu" />
<!-- 右侧主体 -->
<div id="dcMain">
    <div id="urHere">
        网站权限管理
    </div>
    <div id="index" class="mainBox" style="padding-top:18px;height:auto!important;height:550px;min-height:550px;">
        <div class="indexBox">
            <!-- 右侧导航 -->
            <ul class="ipage">
                <a href="{:U('Manageraccess/index')}">BACK</a>
                <div class="clear"></div>
            </ul>
        </div>
<!-- 详情页 -->
<div class="indexBox">
    <script type="text/javascript">
        $(function(){
            $(".idTabs").idTabs();
        });
    </script>
    <div class="idTabs">
        <ul class="tab">
            <li><a href="#main">修改管理员权限</a></li>
        </ul>
        <div class="items">
            <div id="main">
                <form action="{:U('Manageraccess/edit_access_do')}" method="post">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <tbody>
                            <tr>
                                <th width="131">栏目</th>
                                <th>节点内容</th>
                            </tr>
                            <tr>
                                <td align="center">角色名称</td>
                                <td>
                                    &nbsp;{$role_access[0]['role']}
                                </td>
                            </tr>
                            <foreach name="data" item="vo" key="key">
                               <tr>
                                <td align="center">{$vo.name}
                                </td>
                                <td>
                                    <volist name="vo['child']" id="v">
                                    &nbsp;
                                    
                                        <input type="checkbox"  name="access[]" value="{$v.id}" 
                                        <in name="v.id" value="$id">
                                        checked="check">
                                        </else

                                        </in>
                                        >{$v.name}
                                    </volist>
                                </td>
                               </tr>
                            </foreach>
                            <tr>
                                <td colspan="2" align="center">
                                    <input type="hidden" name="role_name" value="{$role_access[0]['role']}" />
                                    <input name="submit" class="btn" type="submit" value="提交" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="Public/footer" />
